package com.example.cloudstorge.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StoreController {


    @GetMapping("store/product/{productId}")
    public String storeProduct(@PathVariable String productId) {
        System.out.println("商品" + productId + "扣减成功!!!");
        return "success";
    }

}
